<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>041-定位的特殊应用</title>
		<style>
			.outer {
				height: 400px;
				background-color: #888;
				position: relative;
			}

			/* 用定位来调整元素大小 */
			.inner {
				width: auto;
				background-color: orange;
				font-size: 20px;
				padding: 20px;
				border: 10px solid red;
				position: absolute;
				top: 5px;
				left: 5px;
				right: 5px;
				bottom: 5px;
			}
		</style>
	</head>
	<body>
		<div class="outer">
			<div class="inner">你好啊</div>
		</div>
	</body>
</html>
